blmius blmius
3年前
html文本去掉html标签只留文本的解决方案
str.replace(/<^/g,"");本文转自https://blog.csdn.net/JunZhao09/article/details/108649418(https://blog.csdn
Stella981 Stella981
3年前
Python将字符串转换成ObjectId类型
MongoDB自动生成的_id是ObjectId类型的。我需要将MongoDB的_id存到ElasticSearch中,而ElasticSearch又只能存String类型的_id,所以就涉及到两种类型的转换。ObjectId类型—→String类型这个非常简单
Stella981 Stella981
3年前
DockerSwarm+Dubbo镜像与部署相关命令与参数
Docker镜像一、容器转镜像dockercommit<containerId<image:tagdockercommit3ffa4284ddcazookeeper:3.4.14二、镜像保存文件dockersavezookeeper:3.4.1
Wesley13 Wesley13
3年前
Java数字序号转中文读写序号
1publicclassNumToChineseUtil{23/4Java好用的5int数字转中文6@paramsrc7@return8/9
Stella981 Stella981
3年前
Codeforces 492A
include<iostreaminclude<cmathinclude<cstdlibinclude<algorithminclude<stringinclude<string.hinclude<cstringusing namespace 
Stella981 Stella981
3年前
Redis中bitmap的妙用
BitMap是什么就是通过一个bit位来表示某个元素对应的值或者状态,其中的key就是对应元素本身。我们知道8个bit可以组成一个Byte,所以bitmap本身会极大的节省储存空间。Redis中的BitMapRedis从2.2.0版本开始新增了setbit,getbit,bitcount等几个bitmap相关命令。虽然
Wesley13 Wesley13
3年前
Java Map
publicclassPerson{publicstaticvoidmain(Stringargs){Map<Integer,StringmapnewHashMap<Integer,String();map.put
Stella981 Stella981
3年前
Angular2记录
对象转Observableimport'rxjs/add/observable/of'Observable.of(1,2,3)http请求后做处理import{map,catchError}from'rxjs/operators'
Stella981 Stella981
3年前
Highcharts的使用(2个Y轴&折线图)
后台页面:List<Map<String,StringlistsaleService.getSaleAndBuyer();StringBufferdateArraynewStringBuffer();StringBuffersaleArraynewStringBuffer();StringBufferbuyerA
Wesley13 Wesley13
3年前
JUC四个函数式接口
publicclassDemo01{publicstaticvoidmain(Stringargs){Function<String,Integerfunctions{returns.length();};